package com.sxt.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sxt.springboot.entity.User;

@Controller
public class UserController {
	@RequestMapping("queryUser")
	@ResponseBody
	public User queryUser() {
		return new User(1, "小明");
	}
}
